package com.lsege.mapper.backstage;


import com.lsege.entity.backstage.MutualAid;
import com.lsege.entity.backstage.MutualAidApply;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2017/7/29 0029.
 */
@org.apache.ibatis.annotations.Mapper
@Repository(value ="MutualAidMapper")
public interface MutualAidMapper {
    List<MutualAid> getMutualAidList();
    Long getMutuaiAidCount();
    List<MutualAidApply> getMutualAidApply(Integer applyState);
    Long getMutualAidApplyCount(Integer applyState);
    List<MutualAidApply> getOverMutualAidApply();
    Long getOverMutualAidApplyCount();
    void rejectApply(MutualAidApply mutualAidApply);
    void rejectApplyReason(MutualAidApply mutualAidApply);
    void allowApply(MutualAidApply mutualAidApply);
    Long getApplyMoney(MutualAidApply mutualAidApply);
    void changeApplyMoney(Long reduce);
    void changeMutualAidState();
    Long getMutualAidCount();
    void changeApplyState(String mutualCode);
    void judgeCost(Long reduce);
    void changeCannotToCan();
}
